package day1.demo3;

import java.util.concurrent.Callable;

public class C implements Callable<Long> {
    @Override
    public Long call() throws Exception {
        long sum = 0;
        for (int i = 0; i < 10000000; i++) {
            sum+=i;
        }
//        int a = 1/0;
//        System.out.println("总和为："+sum);
        return sum;
    }
}
